import React,{Component} from 'react';

export default class CmtList extends Component{
    constructor(props)
    {
        super(props);
        this.state={
            CommentList:
            [
                {id:1,name:'常玉春',role:'管理员',email:'chang@whut.com',location:'武汉理工'},
                {id:2,name:'陈德',role:'管理员',email:'chende@whut.com',location:'武汉理工'},
                {id:3,name:'吴迪',role:'管理员',email:'wudi@whut.com',location:'武汉理工'},
                {id:4,name:'张凯',role:'管理员',email:'zhangkai@whut.com',location:'武汉理工'},
                {id:5,name:'小邴',role:'管理员',email:'bing@whut.com',location:'武汉理工'},
                {id:6,name:'周冉',role:'管理员',email:'zhou@whut.com',location:'武汉理工'}
            ]

        }
    }

    render()
    {
        
        return(<div>
            <h1>评论列表测试</h1>
            {this.state.CommentList.map(item=><div key={item.id}>
                <tr>{item.id}</tr>
                <tr>{item.name}</tr>
                <tr>{item.email}</tr>
                <tr>{item.location}</tr>
                </div>)}
        </div>);
    }


}